[INFO] cloning repository https://github.com/KhodingNow/Leaking_memory_withRc_RefCell
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KhodingNow/Leaking_memory_withRc_RefCell" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKhodingNow%2FLeaking_memory_withRc_RefCell", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKhodingNow%2FLeaking_memory_withRc_RefCell'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3465e16b334784f610d32f9f5863453639e25963
[INFO] fixing KhodingNow/Leaking_memory_withRc_RefCell against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKhodingNow%2FLeaking_memory_withRc_RefCell" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/KhodingNow/Leaking_memory_withRc_RefCell
[INFO] finished tweaking git repo https://github.com/KhodingNow/Leaking_memory_withRc_RefCell
[INFO] tweaked toml for git repo https://github.com/KhodingNow/Leaking_memory_withRc_RefCell written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/KhodingNow/Leaking_memory_withRc_RefCell on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/KhodingNow/Leaking_memory_withRc_RefCell already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 2d0cf5fd1614f84ed2a5af5e5c4edc5fe7f18f889679be3217258e17353ae8a8
[INFO] running `Command { std: "docker" "start" "2d0cf5fd1614f84ed2a5af5e5c4edc5fe7f18f889679be3217258e17353ae8a8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2d0cf5fd1614f84ed2a5af5e5c4edc5fe7f18f889679be3217258e17353ae8a8" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2d0cf5fd1614f84ed2a5af5e5c4edc5fe7f18f889679be3217258e17353ae8a8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2d0cf5fd1614f84ed2a5af5e5c4edc5fe7f18f889679be3217258e17353ae8a8" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking reference_cycle_leaking_mem v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0428]: the name `Node` is defined multiple times
[INFO] [stdout]    --> src/main.rs:100:9
[INFO] [stdout]     |
[INFO] [stdout]  59 |         struct Node {
[INFO] [stdout]     |         ----------- previous definition of the type `Node` here
[INFO] [stdout] ...
[INFO] [stdout] 100 |         struct Node {
[INFO] [stdout]     |         ^^^^^^^^^^^ `Node` redefined here
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Node` must be defined only once in the type namespace of this block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Weak` in this scope
[INFO] [stdout]    --> src/main.rs:102:29
[INFO] [stdout]     |
[INFO] [stdout] 102 |             parent: RefCell<Weak<Node>>,
[INFO] [stdout]     |                             ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::rc::Weak;
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::sync::Weak;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Weak` in this scope
[INFO] [stdout]    --> src/main.rs:109:34
[INFO] [stdout]     |
[INFO] [stdout] 109 |             parent: RefCell::new(Weak::new()),
[INFO] [stdout]     |                                  ^^^^ use of undeclared type `Weak`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::rc::Weak;
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::sync::Weak;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Weak` in this scope
[INFO] [stdout]    --> src/main.rs:117:34
[INFO] [stdout]     |
[INFO] [stdout] 117 |             parent: RefCell::new(Weak::new()),
[INFO] [stdout]     |                                  ^^^^ use of undeclared type `Weak`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::rc::Weak;
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::sync::Weak;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0428]: the name `Node` is defined multiple times
[INFO] [stdout]    --> src/main.rs:100:9
[INFO] [stdout]     |
[INFO] [stdout]  59 |         struct Node {
[INFO] [stdout]     |         ----------- previous definition of the type `Node` here
[INFO] [stdout] ...
[INFO] [stdout] 100 |         struct Node {
[INFO] [stdout]     |         ^^^^^^^^^^^ `Node` redefined here
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Node` must be defined only once in the type namespace of this block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: missing generics for struct `RefCell`
[INFO] [stdout]   --> src/main.rs:61:38
[INFO] [stdout]    |
[INFO] [stdout] 61 |             children: RefCell<Vec<Rc<RefCell>>>,
[INFO] [stdout]    |                                      ^^^^^^^ expected 1 generic argument
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 61 |             children: RefCell<Vec<Rc<RefCell<T>>>>,
[INFO] [stdout]    |                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0119]: conflicting implementations of trait `Debug` for type `main::Node`
[INFO] [stdout]   --> src/main.rs:99:18
[INFO] [stdout]    |
[INFO] [stdout] 58 |         #[derive(Debug)]
[INFO] [stdout]    |                  ----- first implementation here
[INFO] [stdout] ...
[INFO] [stdout] 99 |         #[derive(Debug)]
[INFO] [stdout]    |                  ^^^^^ conflicting implementation for `main::Node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `main::Node` has no field named `parent`
[INFO] [stdout]    --> src/main.rs:109:13
[INFO] [stdout]     |
[INFO] [stdout] 109 |             parent: RefCell::new(Weak::new()),
[INFO] [stdout]     |             ^^^^^^ `main::Node` does not have this field
[INFO] [stdout]     |
[INFO] [stdout]     = note: all struct fields are already assigned
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `parent` on type `Rc<main::Node>`
[INFO] [stdout]    --> src/main.rs:113:45
[INFO] [stdout]     |
[INFO] [stdout] 113 |         println!("leaf parent = {:?}", leaf.parent.borrow().upgrade());
[INFO] [stdout]     |                                             ^^^^^^ unknown field
[INFO] [stdout]     |
[INFO] [stdout]     = note: available fields are: `value`, `children`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `main::Node` has no field named `parent`
[INFO] [stdout]    --> src/main.rs:117:13
[INFO] [stdout]     |
[INFO] [stdout] 117 |             parent: RefCell::new(Weak::new()),
[INFO] [stdout]     |             ^^^^^^ `main::Node` does not have this field
[INFO] [stdout]     |
[INFO] [stdout]     = note: all struct fields are already assigned
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `parent` on type `Rc<main::Node>`
[INFO] [stdout]    --> src/main.rs:121:15
[INFO] [stdout]     |
[INFO] [stdout] 121 |         *leaf.parent.borrow_mut() = Rc::downgrade(&branch);
[INFO] [stdout]     |               ^^^^^^ unknown field
[INFO] [stdout]     |
[INFO] [stdout]     = note: available fields are: `value`, `children`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `parent` on type `Rc<main::Node>`
[INFO] [stdout]    --> src/main.rs:123:45
[INFO] [stdout]     |
[INFO] [stdout] 123 |         println!("leaf parent = {:?}", leaf.parent.borrow().upgrade());
[INFO] [stdout]     |                                             ^^^^^^ unknown field
[INFO] [stdout]     |
[INFO] [stdout]     = note: available fields are: `value`, `children`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `parent` on type `&main::Node`
[INFO] [stdout]    --> src/main.rs:102:13
[INFO] [stdout]     |
[INFO] [stdout] 102 |             parent: RefCell<Weak<Node>>,
[INFO] [stdout]     |             ^^^^^^ unknown field
[INFO] [stdout]     |
[INFO] [stdout]     = note: available fields are: `value`, `children`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0119, E0425, E0428, E0433, E0560, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `reference_cycle_leaking_mem` (bin "reference_cycle_leaking_mem" test) due to 12 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0425]: cannot find type `Weak` in this scope
[INFO] [stdout]    --> src/main.rs:102:29
[INFO] [stdout]     |
[INFO] [stdout] 102 |             parent: RefCell<Weak<Node>>,
[INFO] [stdout]     |                             ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::rc::Weak;
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::sync::Weak;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Weak` in this scope
[INFO] [stdout]    --> src/main.rs:109:34
[INFO] [stdout]     |
[INFO] [stdout] 109 |             parent: RefCell::new(Weak::new()),
[INFO] [stdout]     |                                  ^^^^ use of undeclared type `Weak`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::rc::Weak;
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::sync::Weak;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Weak` in this scope
[INFO] [stdout]    --> src/main.rs:117:34
[INFO] [stdout]     |
[INFO] [stdout] 117 |             parent: RefCell::new(Weak::new()),
[INFO] [stdout]     |                                  ^^^^ use of undeclared type `Weak`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these structs
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::rc::Weak;
[INFO] [stdout]     |
[INFO] [stdout]   3 + use std::sync::Weak;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0107]: missing generics for struct `RefCell`
[INFO] [stdout]   --> src/main.rs:61:38
[INFO] [stdout]    |
[INFO] [stdout] 61 |             children: RefCell<Vec<Rc<RefCell>>>,
[INFO] [stdout]    |                                      ^^^^^^^ expected 1 generic argument
[INFO] [stdout]    |
[INFO] [stdout] help: add missing generic argument
[INFO] [stdout]    |
[INFO] [stdout] 61 |             children: RefCell<Vec<Rc<RefCell<T>>>>,
[INFO] [stdout]    |                                             +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0119]: conflicting implementations of trait `Debug` for type `main::Node`
[INFO] [stdout]   --> src/main.rs:99:18
[INFO] [stdout]    |
[INFO] [stdout] 58 |         #[derive(Debug)]
[INFO] [stdout]    |                  ----- first implementation here
[INFO] [stdout] ...
[INFO] [stdout] 99 |         #[derive(Debug)]
[INFO] [stdout]    |                  ^^^^^ conflicting implementation for `main::Node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `main::Node` has no field named `parent`
[INFO] [stdout]    --> src/main.rs:109:13
[INFO] [stdout]     |
[INFO] [stdout] 109 |             parent: RefCell::new(Weak::new()),
[INFO] [stdout]     |             ^^^^^^ `main::Node` does not have this field
[INFO] [stdout]     |
[INFO] [stdout]     = note: all struct fields are already assigned
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `parent` on type `Rc<main::Node>`
[INFO] [stdout]    --> src/main.rs:113:45
[INFO] [stdout]     |
[INFO] [stdout] 113 |         println!("leaf parent = {:?}", leaf.parent.borrow().upgrade());
[INFO] [stdout]     |                                             ^^^^^^ unknown field
[INFO] [stdout]     |
[INFO] [stdout]     = note: available fields are: `value`, `children`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `main::Node` has no field named `parent`
[INFO] [stdout]    --> src/main.rs:117:13
[INFO] [stdout]     |
[INFO] [stdout] 117 |             parent: RefCell::new(Weak::new()),
[INFO] [stdout]     |             ^^^^^^ `main::Node` does not have this field
[INFO] [stdout]     |
[INFO] [stdout]     = note: all struct fields are already assigned
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `parent` on type `Rc<main::Node>`
[INFO] [stdout]    --> src/main.rs:121:15
[INFO] [stdout]     |
[INFO] [stdout] 121 |         *leaf.parent.borrow_mut() = Rc::downgrade(&branch);
[INFO] [stdout]     |               ^^^^^^ unknown field
[INFO] [stdout]     |
[INFO] [stdout]     = note: available fields are: `value`, `children`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `parent` on type `Rc<main::Node>`
[INFO] [stdout]    --> src/main.rs:123:45
[INFO] [stdout]     |
[INFO] [stdout] 123 |         println!("leaf parent = {:?}", leaf.parent.borrow().upgrade());
[INFO] [stdout]     |                                             ^^^^^^ unknown field
[INFO] [stdout]     |
[INFO] [stdout]     = note: available fields are: `value`, `children`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `parent` on type `&main::Node`
[INFO] [stdout]    --> src/main.rs:102:13
[INFO] [stdout]     |
[INFO] [stdout] 102 |             parent: RefCell<Weak<Node>>,
[INFO] [stdout]     |             ^^^^^^ unknown field
[INFO] [stdout]     |
[INFO] [stdout]     = note: available fields are: `value`, `children`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0107, E0119, E0425, E0428, E0433, E0560, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0107`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `reference_cycle_leaking_mem` (bin "reference_cycle_leaking_mem") due to 12 previous errors
[INFO] running `Command { std: "docker" "inspect" "2d0cf5fd1614f84ed2a5af5e5c4edc5fe7f18f889679be3217258e17353ae8a8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2d0cf5fd1614f84ed2a5af5e5c4edc5fe7f18f889679be3217258e17353ae8a8", kill_on_drop: false }`
[INFO] [stdout] 2d0cf5fd1614f84ed2a5af5e5c4edc5fe7f18f889679be3217258e17353ae8a8
